import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
    lang: 'zh_CN',
    ignoreDeadLinks: true,
    title: "修炼秘籍",
    description: "一个记录学习笔记的网站！",
    themeConfig: {
        logo: '/logo.svg',
        // https://vitepress.dev/reference/default-theme-config
        nav: [
            {text: '首页', link: '/index.md'},
            {text: '博客', link: '/http://blog.xiaozheng.site'},
            {
                text: '前端笔记',
                collapsed: true,
                items: [
                    {text: 'HTML5', link: '/01前端笔记/01HTML/HTML.md'},
                    {text: 'CSS3', link: '/01前端笔记/02CSS/CSS.md'},
                    {text: 'JavaScript', link: '/01前端笔记/03JavaScript/JavaScript.md'},
                    {text: 'Ajax', link: '/01前端笔记/04AJAX/AJAX.md'},
                    {text: 'Nodejs', link: '/01前端笔记/05Node.js/Nodejs.md'},
                    {text: 'Webpack', link: '/01前端笔记/06WebPack/WebPack.md'},
                    {text: 'Git', link: '/01前端笔记/07Git/Git.md'},
                    {
                        text: 'Vue',
                        collapsed: true,
                        items: [
                            {text: 'Vue2', link: '/01前端笔记/08Vue/Vue2/Vue2.md'},
                            {text: 'Vue3', link: '/01前端笔记/08Vue/Vue3/Vue3.md'},
                        ]
                    },
                    {text: 'TypeScript', link: '/01前端笔记/09TypeScript/TypeScript 极速梳理.pdf'}
                ]
            },
        ],

        socialLinks: [
            {icon: 'github', link: 'http://blog.xiaozheng.site'}
        ],

        footer: {
            message: 'Released under the MIT License.',
            copyright: 'Copyright © 2019-present Evan You'
        }
    }
})
